﻿#ifndef ReserveInfo_H
#define ReserveInfo_H
#include<QString>
#include <QList>
#include <QMap>

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

class ReserveInfo
{
public:
    ReserveInfo();
    ReserveInfo(int payment,int count,QString reserve,QString user, QString hotel,
                QString houseType,QString reserveTime,QString checkInTel,QString checkInName,
                QString checkInTime, QString checkOutTime,QString arrivalTime,QString state,
                QString hotelName, QString hotelLocation, QString hotelPhone);

    int getPayment() const;
    int getHouseCount() const;
    const QString &getReserve() const;
    const QString &getuser() const;
    const QString &getHotel() const;
    const QString &getHouseType() const;
    const QString &getReserveTime() const;
    const QString &getCheckInTel() const;
    const QString &getCheckInName() const;
    const QString &getCheckInTime() const;
    const QString &getCheckOutTime() const;
    const QString &getArrivalTime() const;
    const QString &getCommentState() const;
    const QString &getState() const;
    const QString &getHotelName() const;
    const QString &getHotelLocation() const;
    const QString &getHotelPhone() const;


    void setPayment(int payment);
    void setHouseCount(int count);
    void setReserve(const QString& reserve);
    void setuser(const QString& user);
    void setHotel(const QString& hotel);
    void setHouseType(const QString& houseType);
    void setReserveTime(const QString& reserveTime);
    void setCheckInTel(const QString& checkInTel);
    void setCheckInName(const QString& checkInName);
    void setCheckInTime(const QString& checkInTime);
    void setCheckOutTime(const QString& checkOutTime);
    void setArrivalTime(const QString& arrivalTime);
    void setCommentState(const QString& commentState);
    void setState(const QString& state);
    void setHotelName(const QString& hotelName);
    void setHotelLocation(const QString& hotelLocation);
    void setHotelPhone(const QString& hotelPhone);

private:
    int m_payment;
    int m_houseCount;

    QString m_reserve;
    QString m_user;
    QString m_hotel;
    QString m_houseType;
    QString m_reserveTime;

    QString m_checkInTel;
    QString m_checkInName;
    QString m_checkInTime;
    QString m_checkOutTime;
    QString m_arrivalTime;

    QString m_commentState;
    QString m_state;
    QString m_hotelName;
    QString m_hotelLocation;
    QString m_hotelPhone;
};

typedef QList<ReserveInfo> ReserveInfoList;
typedef QMap<QString, ReserveInfoList::iterator> ReserveInfoMap;  //网络操作使用


#endif // ReserveInfo_H
